package com.love.huawei;

import java.util.Arrays;
import java.util.Iterator;
import java.util.PriorityQueue;

/**
 * @Author : zh
 * @Description :
 * @Date : 2024-03-15 13:35
 */
public class MeetingRoom {


        int[][] meetings = {
                {2,7},{1,10},{8,12},{3,19},{10,20},{11,30}
        };



        public static int rooms(int[][] meetings){
            if(meetings.length == 0){
                return 0;
            }
            Arrays.sort(meetings,(a,b) -> a[0] - b[0]);



            return 0;

        }


    public static void main(String[] args) {
        PriorityQueue<Integer> priorityQueue = new PriorityQueue<>();
        priorityQueue.offer(7);
        priorityQueue.offer(10);
        priorityQueue.offer(3);
        priorityQueue.offer(5);
        priorityQueue.offer(8);

        Iterator<Integer> iterator = priorityQueue.iterator();

        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
        System.out.println(priorityQueue.poll());
    }


}
